package com.icode.core.model.order;

import com.icode.core.model.AbstractEntity;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-2-10
 * Time: 下午1:09
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "refund")
public class ReFund extends AbstractEntity {

    @OneToOne
    @JoinColumn(name = "order_id")
    private Order order;

    @Column(name = "refund_date")
    private String refundDate;

    @Column(name = "batch_no")
    private String batchNo;

    @Column(name = "trade_no")
    private String tradeNo;

    @Column(name = "price")
    private String price;

    @Column(name = "detail_data")
    private String detailData;

    @Column(name = "refund_status")
    private String refundStatus;

    public ReFund() {
    }

    public ReFund(Order order,String refundDate, String batchNo, String tradeNo, String price, String detailData,String refundStatus) {
        this.order=order;
        this.refundDate = refundDate;
        this.batchNo = batchNo;
        this.tradeNo = tradeNo;
        this.price = price;
        this.detailData = detailData;
        this.refundStatus=refundStatus;
    }

    public String refundDate() {
        return refundDate;
    }

    public String batchNo() {
        return batchNo;
    }

    public String refundStatus() {
        return refundStatus;
    }

    public Order order() {
        return order;
    }

    public String tradeNo() {
        return tradeNo;
    }

    public String price() {
        return price;
    }

    public String detailData() {
        return detailData;
    }
}
